﻿
Partial Class CtrlUsr_Acciones_Up_Ctrl_AcepOferta
    Inherits CtrlUsrComun

    Public Event SelClicked As EventHandler
    Public Event CancelClicked As EventHandler

    Public Property Id_Oferta() As String
        Get
            Return Ctrl_AcepOferta1.Id_Oferta
        End Get
        Set(ByVal value As String)
            Ctrl_AcepOferta1.Id_Oferta = value
        End Set
    End Property
    Public Property Estado() As String
        Get
            Return Ctrl_AcepOferta1.Estado
        End Get
        Set(ByVal value As String)
            Ctrl_AcepOferta1.Estado = value
        End Set
    End Property
    Public Property Mensaje() As String
        Set(ByVal value As String)
            Ctrl_AcepOferta1.Mensaje = value
        End Set
        Get
            Return Ctrl_AcepOferta1.Mensaje
        End Get
    End Property
    Public Property LErroG() As Boolean
        Set(ByVal value As Boolean)
            Ctrl_AcepOferta1.LErroG = value
        End Set
        Get
            Return Ctrl_AcepOferta1.LErroG
        End Get
    End Property

    Protected Overridable Sub Onclick(ByVal sender As Object)
        RaiseEvent SelClicked(sender, New EventArgs)
    End Sub
    Protected Overridable Sub Cancelclick(ByVal sender As Object)
        RaiseEvent CancelClicked(sender, New EventArgs)
    End Sub

    Protected Sub Ctrl_AcepOferta1_CancelClicked(ByVal sender As Object, ByVal e As System.EventArgs) Handles Ctrl_AcepOferta1.CancelClicked
        Cancelclick(sender)
    End Sub

    Protected Sub Ctrl_Apoderados1_SelClicked(ByVal sender As Object, ByVal e As System.EventArgs) Handles Ctrl_AcepOferta1.GuardarClicked
        Onclick(sender)
    End Sub

    Public Sub Mostrar()
        Me.modalPopupCon.Show()
    End Sub

    Public Sub Ocultar()
        Me.modalPopupCon.Hide()
    End Sub
    Public Sub Limpiar()
        Me.Ctrl_AcepOferta1.Limpiar()
    End Sub
End Class
